#ifndef READ_ENV_H
#define READ_ENV_H
#include <windows.h>    
#include <iostream>
#include <string>
#include <map>
using std::string;
using std::map;

class Env
{
public:
    class FailOpenKey{};
    enum{USER, MACHINE};
    Env(int type);
    ~Env();
    void display();
private:
    void read();
    HKEY handle_;
    map<string, string> vars_;
};


#endif
